package com.supreme.commonmybatis.service.quick;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supreme.commonentity.mysql.primary.SysUser;
import com.supreme.commonmybatis.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 * @author maccitec
 * @description 针对表【biz_user】的数据库操作Service实现
 * @createDate 2022-09-12 20:07:19
 */
@Service
public class UserOrmService extends ServiceImpl<UserMapper, SysUser> {

    public SysUser getUserByUsername(String username) {
        return this.getOne(Wrappers.lambdaQuery(SysUser.class).eq(SysUser::getUsername, username));
    }
}




